[gd_scene load_steps=8 format=3 uid="uid://dpr28dtsilg7d"]

[ext_resource type="Script" path="res://player.gd" id="1_t3wqe"]
[ext_resource type="Script" path="res://Scripts/smoky.gd" id="3_1ipiq"]
[ext_resource type="ArrayMesh" uid="uid://b4newna8xuxae" path="res://Assets/Models/wasp.res" id="3_qgisc"]
[ext_resource type="ArrayMesh" uid="uid://b15kfe5xv17x6" path="res://Assets/Models/smoky.res" id="4_kjf15"]
[ext_resource type="AudioStream" uid="uid://dsjjw1rvty5hc" path="res://Assets/Sounds/smoky_shot.mp3" id="5_lfb7x"]

[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_j3too"]
points = PackedVector3Array(0.7, 0.549971, 1.19977, 0.7, 0.299946, 1.19977, 0.699863, 0.699985, -1.15, 0.699863, 0.699985, 0.399951, 0.699863, 0.64998, 0.999873, -0.500059, 0.549971, 1.2, -0.500059, 0.299946, 1.2, 0.699863, 0.0440143, 0.75995, 0.699863, 0, 0.399951, 0.699863, 0, -1.00002, 0.699863, 0.0845341, -1.07501, 0.699863, 0.299946, -1.15, -0.7, 0.699985, -1.15, 0.499922, 0.85, -1.00002, 0.499922, 0.85, 0.399951, -0.7, 0.64998, 0.999873, -0.7, 0.549971, 1.2, -0.7, 0.299946, 1.2, -0.7, 0.0440143, 0.75995, -0.7, 0, 0.399951, -0.500059, 0, -1.07501, -0.7, 0.299946, -1.15, -0.7, 0.699985, 0.399951, -0.500059, 0.85, -1.00002, -0.500059, 0.85, 0.399951, -0.7, 0, -1.07501)

[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_elci8"]
points = PackedVector3Array(0.3, 0.324229, 0.399961, 0.3, 0.000548244, 0.399961, 0.3, 0.324296, -0.436962, 0.278387, 0.34597, 0.399961, 0.0569107, 0.174476, 1.5, 0.0663078, 0.164975, 1.5, 0.0663078, 0.0655683, 1.5, 0.201919, 0.000548244, 0.599843, 0.3, 0.000548244, -0.436962, 0.236805, 0.298667, -0.5, 0.278446, 0.34597, -0.438136, -0.278446, 0.34597, 0.399961, -0.0569695, 0.174476, 1.5, -0.0663665, 0.0655683, 1.5, -0.201977, 0.000548244, 0.599843, 0.236805, 0.000548244, -0.5, -0.236864, 0.298667, -0.5, 0, 0.34597, -0.452819, -0.278504, 0.34597, -0.438136, -0.3, 0.324296, -0.436962, -0.3, 0.324229, 0.399961, -0.0663665, 0.164975, 1.5, -0.3, 0.000548244, 0.399961, -0.236864, 0.000548244, -0.5, -0.3, 0.000548244, -0.436962)

[node name="player" type="Node"]
script = ExtResource("1_t3wqe")

[node name="body" type="VehicleBody3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)

[node name="MeshInstance3D" type="MeshInstance3D" parent="body"]
mesh = ExtResource("3_qgisc")

[node name="CollisionShape3D" type="CollisionShape3D" parent="body"]
shape = SubResource("ConvexPolygonShape3D_j3too")

[node name="R1" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.603845, 0.271845, -0.69379)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="R2" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.603845, 0.271845, 0.00121617)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="R3" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.603845, 0.271845, 0.643751)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="L1" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.604412, 0.271845, -0.69379)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="L2" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.604412, 0.271845, 0.00121617)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="L3" type="VehicleWheel3D" parent="body"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.604412, 0.271845, 0.643751)
use_as_traction = true
wheel_radius = 0.3
wheel_friction_slip = 1.5
suspension_travel = 0.1
suspension_stiffness = 35.0
damping_compression = 0.9
damping_relaxation = 0.95

[node name="turret" type="StaticBody3D" parent="."]
transform = Transform3D(1, 0, 1.74846e-07, 0, 1, 0, -1.74846e-07, 0, 1, 4.11761e-08, 0.85, 0.399858)
script = ExtResource("3_1ipiq")

[node name="Smoky" type="MeshInstance3D" parent="turret"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
mesh = ExtResource("4_kjf15")

[node name="CollisionShape3D" type="CollisionShape3D" parent="turret"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
shape = SubResource("ConvexPolygonShape3D_elci8")

[node name="AimRay" type="RayCast3D" parent="turret"]
transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0.118692, -1.62469)
target_position = Vector3(0, 0, -100)
collide_with_areas = true

[node name="CooldownTimer" type="Timer" parent="turret"]
wait_time = 1.5
one_shot = true

[node name="SmokyShotAudio" type="AudioStreamPlayer3D" parent="turret"]
stream = ExtResource("5_lfb7x")

[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
root_path = NodePath("../body")

[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.956819, 0.290686, 0, -0.290686, 0.956819, 0, 2, 2.80571)

[connection signal="timeout" from="turret/CooldownTimer" to="turret" method="_on_cooldown_timer_timeout"]
